import App from './App.vue' // 需要先导入 App 组件
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import router from './router'
import errorHandler from './plugins/error-handler'

import {
  NavBar,
  Grid,
  GridItem,
  Form,
  Field,
  CellGroup,
  Button,
  Toast,
  Sticky,
  PullRefresh,
  List,
  SwipeCell,
  Cell,
  Dialog,
  Popup,
  DatePicker,
  Picker,
  PickerGroup,
  TimePicker,
  DropdownMenu,
  DropdownItem,
  Stepper,
  Row,
  Col
} from 'vant'
import 'vant/lib/index.css'
import './styles/vant-override.scss'
import './style.css'
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(errorHandler)
app.use(NavBar)
app.use(Grid)
app.use(GridItem)
app.use(Form)
app.use(Field)
app.use(CellGroup)
app.use(Button)
app.use(Toast)
app.use(Sticky)
app.use(PullRefresh)
app.use(List)
app.use(SwipeCell)
app.use(Cell)
app.use(Dialog)
app.use(Popup)
app.use(DatePicker)
app.use(Picker)
app.use(PickerGroup)
app.use(TimePicker)
app.use(DropdownMenu)
app.use(DropdownItem)
app.use(Stepper)
app.use(Row)
app.use(Col)
app.mount('#app')
